package com.sphd.emanu.activity.goodsfrom;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Commodity;
import com.sphd.emanu.pojo.goods.Composition;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;
import retrofit2.http.Query;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class GoodsfromContract {
    interface View extends BaseView {

        void setEntity(Commodity goodsEntity);

        void setDelRes(int res, SweetAlertDialog sweetAlertDialog, int position);

        void setUpRes(int res, SweetAlertDialog sweetAlertDialog);
    }

    interface Presenter extends BasePresenter<View> {
        void updateCommoditySrcCome(int id, String source,
                                    String composition, int categoryId,
                                    int oid,SweetAlertDialog sweetAlertDialog);

        void getFromList(int id);

        void deleteComposition(int id, SweetAlertDialog sweetAlertDialog, int position);
    }
}
